<form class="form-horizontal" action="<?php echo U('admin/node/add'); ?>">
	 <div class="control-group">
		<label class="control-label" for="title">节点</label>
		<div class="controls">
			<input type="text" name="title" class="required">
		</div>
	</div>
	<div class="control-group">
		<label class="control-label" for="module">模块</label>
		<div class="controls">
			<select name="module" class="required">
				<?php foreach( $modules as $k=>$v ): ?>
				<option value="<?php echo $k; ?>"><?php echo $v['name']; ?></option>
				<?php endforeach; ?>
			</select>
		</div>
	</div>
	<div class="control-group">
		<label class="control-label" for="name">访问</label>
		<div class="controls">
			<input type="text" name="name" class="required">
		</div>
	</div>
	<div class="control-group">
		<label class="control-label" for="pid">上级</label>
		<div class="controls">
			<select name="pid">
				<option value="0">无</option>
				<?php foreach( $nodes as $v ): ?>
				<option value="<?php echo $v['id']; ?>"><?php echo $v['title']; ?></option>
				<?php endforeach; ?>
			</select>
		</div>
	</div>
	<div class="control-group">
		<label class="control-label" for="name">菜单</label>
		<div class="controls">
			<label class="radio inline">
				<input type="radio" name="is_menu" value="1">是
			</label>
			<label class="radio inline">
				<input type="radio" name="is_menu" value="0">否
			</label>
		</div>
	</div>
</form>